﻿/*
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

namespace Daidalos.Interfaces
{

    /// <summary>
    ///     This interface can be used to demand the implementation
    ///     of cloning/duplication functionality.
    /// </summary>
    public interface Disposable
    {

        #region Methods
        /// <summary>
        ///     Disposes of the object. Invoking this method cleans
        ///     up all system + graphics resources used by this object.
        /// </summary>
        /// <remarks>
        ///     The interface should be used, because disposable objects
        ///     (which are objects that must[!] be disposed manually)
        ///     can now be disposed between frames and not when the
        ///     garbage collector feels like it. Thus all disposeable
        ///     items should be inserted into a queue when they are
        ///     no longer used. Between frames the Dispose()-method
        ///     of all objects in that global queue can be called to
        ///     clean up between frames.
        /// </remarks>
        void Dispose();
        #endregion

    }

}
